package com.zb.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * @Author WEN
 * @Date 2023/7/8 0008
 **/
@Data
@Accessors(chain = true)
@ApiModel(value = "登录成功返回对象")
public class AccountLoginToken implements Serializable {
    @Serial
    private static final long serialVersionUID = 8677657733512112980L;

    @ApiModelProperty(value = "token的Key")
    private String tokenName;

    @ApiModelProperty(value = "token的Val值")
    private String tokenValue;

    @ApiModelProperty(value = "刷新token令牌")
    private String refreshToken;

    @ApiModelProperty(value = "token有效时长（单位：秒）")
    private long expireIn;

    public AccountLoginToken(String tokenName, String tokenValue, String refreshToken, long expireIn) {
        this.tokenName = tokenName;
        this.tokenValue = tokenValue;
        this.refreshToken = refreshToken;
        this.expireIn = expireIn;
    }
}
